/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package mygame.Object;

import mygame.Manager;
import mygame.Scene.PlacementTriangle;

/**
 *
 * @author Tobi
 */
public class Pickable extends GameObject {
    
    public Pickable() {
        super("");
    }
    //private PlacementTriangle place;
    public Pickable(String name) {
        super(name);        
    }
    
    @Override
    public void interact() {
        //remove object
        Manager.GetInstance().getPlayer().addRessource(this, this.amount);
        this.removeObject();
    }
}
